Skip to content

Conversation

@joaquim-verges
Copy link
Member

@joaquim-verges joaquim-verges commented Nov 16, 2024

Problem solved

Fixes CNCT-2383


PR-Codex overview

This PR focuses on enhancing signature verification for ERC-6492 on the zksync blockchain, improving error handling, and adjusting the verification logic to accommodate zksync-specific requirements.

Detailed summary

  • Added support for ERC-6492 signature verification on zksync.
  • Improved error handling in verify-signature.ts and verify-hash.ts.
  • Introduced ZKSYNC_VALIDATOR_ADDRESS constant.
  • Modified the verificationData logic to handle zksync chains.
  • Updated the return value handling in verifyHash to use hexToBool.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@vercel
Copy link

vercel bot commented Nov 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 16, 2024 9:46am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 16, 2024 9:46am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 16, 2024 9:46am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 16, 2024 9:46am

@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 16, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@joaquim-verges joaquim-verges changed the title Support ERC-6492 signature verification on zksync chains feat: Support ERC-6492 signature verification on zksync chains Nov 16, 2024
@joaquim-verges joaquim-verges marked this pull request as ready for review November 16, 2024 04:58
@joaquim-verges joaquim-verges force-pushed the 11-16-support_erc-6492_signature_verification_on_zksync_chains branch from fdafa5e to 60a8d18 Compare November 16, 2024 05:00
@changeset-bot
Copy link

changeset-bot bot commented Nov 16, 2024

🦋 Changeset detected

Latest commit: d6fde76

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
thirdweb Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Nov 16, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 45.13 KB (+0.56% 🔺) 903 ms (+0.56% 🔺) 303 ms (-30.63% 🔽) 1.3 s
thirdweb (cjs) 105.15 KB (+0.08% 🔺) 2.2 s (+0.08% 🔺) 807 ms (-0.56% 🔽) 3 s
thirdweb (minimal + tree-shaking) 5.72 KB (0%) 115 ms (0%) 131 ms (+434.61% 🔺) 245 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 11 ms (+80.38% 🔺) 21 ms
thirdweb/react (minimal + tree-shaking) 18.79 KB (0%) 376 ms (0%) 102 ms (-33.29% 🔽) 478 ms

@codecov
Copy link

codecov bot commented Nov 16, 2024

Codecov Report

Attention: Patch coverage is 63.33333% with 11 lines in your changes missing coverage. Please review.

Project coverage is 45.52%. Comparing base (a00233d) to head (d6fde76).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
packages/thirdweb/src/auth/verify-hash.ts 67.85% 9 Missing ⚠️
packages/thirdweb/src/auth/verify-signature.ts 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5440      +/-   ##
==========================================
- Coverage   45.53%   45.52%   -0.01%     
==========================================
  Files        1070     1070              
  Lines       55690    55707      +17     
  Branches     4033     4031       -2     
==========================================
+ Hits        25356    25360       +4     
- Misses      29647    29660      +13     
  Partials      687      687              
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from a00233d
packages 40.63% <63.33%> (-0.01%) ⬇️

*This pull request uses carry forward flags. Click here to find out more.

Files with missing lines Coverage Δ
packages/thirdweb/src/auth/verify-signature.ts 95.31% <0.00%> (-1.52%) ⬇️
packages/thirdweb/src/auth/verify-hash.ts 70.45% <67.85%> (-4.55%) ⬇️

... and 4 files with indirect coverage changes

@linear
Copy link

linear bot commented Nov 16, 2024

@joaquim-verges joaquim-verges merged commit f01de73 into main Nov 18, 2024
33 checks passed
@joaquim-verges joaquim-verges deleted the 11-16-support_erc-6492_signature_verification_on_zksync_chains branch November 18, 2024 08:44
@jnsdls jnsdls mentioned this pull request Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants